<?php
echo '<div class="wizardStepIndicator">';
echo '<p>' . text::getEscaped('seminarWizard.wizardSteps') . '</p>';
echo '<ol>';
$reachedStep = true;
foreach (SeminarWizardData::$STEPS as $step) {
    $currentStep = false;
    if ($reachedStep && $step == $this->data->step) {
        $reachedStep = false;
        $currentStep = true;
    }
    $localizedName = text::get('seminarWizard.' . $step . '-header');
    $liClass = '';
    $stepText = $localizedName;
    if ($reachedStep) {
        $liClass = 'reachedStep';
        $stepText = html::anchor('admin/seminarWizard/jump?to=' . $step, $localizedName);
    }
    else if ($currentStep) {
        $liClass = 'currentStep';
    }
    else {
        $liClass = 'notReachedStep';
    }
    echo '<li class="' . $liClass . '">' . $stepText . '</li>';
}
echo '</ol>';
echo '</div>';
?>